<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateTableOptions extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('options', function (Blueprint $table) {
            $table->increments('opt_id');
            $table->char('url',20)->default('localhost')->comment('本站网址');
            $table->char('title',20)->default('')->comment('本站名称');
            $table->char('tel',11)->default('')->comment('本站联系电话');
            $table->char('addr',50)->default('')->comment('本站联系地址');
            $table->char('icp',15)->default('')->comment('本站icp备案');
            $table->char('clear',30)->default('')->comment('清理sql的url');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::drop('options');
    }
}
